package com.senlingspace.system.event;

import lombok.Data;

import java.io.Serializable;

/**
 * 公共类
 *
 * @author lebronjames
 * @date 2024/07/18
 */
@Data
public class ActionEvent<T> implements Serializable {

    private T data;

    private String description;

    public ActionEvent(T data, String description) {
        this.data = data;
        this.description = description;
    }

    public static <T> ActionEvent<T> of(T data, String description) {
        return new ActionEvent<>(data, description);
    }

}
